Install, Enable & Uninstall

The core OpenCPN tries to keep features to a minimum so that it is lean, mean and easy to use. Features can still be added through the plugin infrastructure. Both the older Plugin Package Installation (PI) and the Package Manager (PM) are supported by Opencpn v5.2.4.

Default Plugins

Pre Installed Plugins

Grib Weather
Dashboard
WMM Plugin
Chart Downloader

Plugin Manager (PIM) and Plugin Installer (PI)

The release of OpenCPN 5.x includes the new more direct Plugin Manager (PIM) (Options > Plugins > “+” ) which permits user selection of plugins for Installation via the internet from Cloud sources and Plugin Management (update, reinstallation and removal). This new system is different from the earlier manually installed Plugin Packages Installer (PI) , and will only “Uninstall” it's own kind of plugin.

PI and PIM Plugin Use

Below are some suggestions for using these two plugin installation systems. OpenCPN is moving to the (PM) system as quickly as possible and has prioritized that:

So, if you want to use the Plugin Package Installer (PI) plugin instead:

When you want to return to a PM version do update the plugin catalog and install it.

Please refer to Plugin Versions below.

Plugin Types (PI) and (PIM)

Default Plugins, Plugin Package Installer (PI) and Plugin Manager (PIM) Types can all exist in the Options > Plugins menu, however the manually installed Plugin Packages (of a given name), must be manually removed before a new Plugin Manager version of the same name can be installed. The installation process is very different for both types. Plugin Packages are useful for download with internet access and later installation at sea. Plugin Manager is more convenient and useful when there is good internet access to cloud repositories. The user can distinguish between these different plugin types by the icon to the right in the Options > Plugins listing. There is a hover message which also helps.

These newly rebuilt plugins will not work with older versions of OpenCPN.

Plugin Manager (PIM) Installation

Because the Plugin Manager (PIM) uses internet links and access to cloud repositories and “Catalogs” or lists of available plugins, it provides a more seamless user experience than the Plugin Package (PI) Installers. The installation of the Plugin Manager (PI) is done completely from within the Plugin Interface Options > Plugins.

Direct Access of PIM tarball files

PIM uses the internet to access tarball files located on storage servers. The files can be located anywhere, but most of them are located in Cloudsmith

Alec Leamas has provided an extensive "Tentative" Manual for Plugin Manager which provides details about it's operations.

(We need screen shots and more description here.)

Plugin Package Installation & Removal (PI)

Plugin Packages (PI) - Manual Install & Uninstall

Download Plugin Package

Most plugins provide platform installation packages (*.exe, *.deb, *.pkg, *.dmg) that allow the plugin to be installed by downloading the package from various locations, the latest of which is cloudsmith. These packages can be installed by 'running' them on the platform they are intended for (this is indicated in the file name). This is also known as a “Manual Installation of a “Packaged Plugin”.

Packaged Plugins are found primarily on the dedicated page OpenCPN Download Plugins

Linux Packages (*.deb or *.so)

Install

Uninstall and Remove

Windows Packages (*.exe)

Install

Uninstall and Remove

MacOS Packages (*.pkg)

Install

Uninstall and Remove

Common

All plugins must be Enabled, can be Disabled and when upgraded need to be re-Enabled. Also occassionally a plugin needs to have Troubleshooting, more information about Plugin Versions, also Blacklisted Plugins

Enabling a Plugin

Plugins are made available by clicking on the plugin in the Options→Plugins Tab. Once this is done, an “Enable” button appears. Pressing this button activates the plugin icon in the ToolBar and changes the the default “grayed out” text to black in the list. Not all plugins have an icon when active. For most plugins there is a “Preferences” Button for configuration.

When a plugin is disabled in the Options→Plugin tab, the plugin Icon disappears from the ToolBar.

The Plugin Icon works as a toggle switch for the plugin. Pressing the Grib Icon, for example, activates the Grib plugin. Pressing one more time deactivates it.

The WMM Icon uses a new feature, by displaying the magnetic variation, at the position of OwnShip in the button itself.

Re-Enable a Plugin after a Plugin Update

Version 4.2 has implemented automatic reload of updated PlugIns by visiting the Options→Plugins screen.

Presumably the plugins are rescanned and loaded.

Previously, after a plugin was Disabled, the program had to be shut down and reopened for the full change of Opencpn status to occur. This is no longer necessary, simply go to the Option→Plugins screen and all plugins will be reloaded.

Troubleshoot Problems

If you run into problems with plugins, first check what the opencpn.log file says.

For each plugin you will find lines similar to:

    08:59:25 CEST: PlugInManager searching for PlugIns in location /usr/lib/opencpn\\
08:59:25 CEST: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libweather_routing_pi.so\\
08:59:25 CEST: /usr/lib/opencpn/libweather_routing_pi.so\\
API Version detected: 110\\
PlugIn Version detected: 101

This example is from Linux.

On Windows systems the location of the log file will be displayed when you click “Help” (the ? mark icon) on the toolbar. Alternatively, to find the “opencpn.log” on your system read Installation.

Plugin Versions

The release of OpenCPN 5.2.4 upgrades the user framework for Plugins to a newer version Plugin Manager (PM) which uses new file formats (xml metadata and tarball) and provides a more comprehensive installation interface within Options > Plugin. The older Plugin Package Installer (PI) framework is still supported (for transition)

The release of OpenCPN 4.2 upgrades the user frameworks for Plugins to a newer version Plugin Package Installer (PI), which means it is not binary compatible with the previous releases and all Plugins for Windows and Linux must be rebuilt for compatibility. It is expected that this Plugin interface will remain stable for some time so Plugins will work across different (future) versions of OpenCPN.

Where are PI and PM plugins installed?

With OpenCPN v5.2.4 the plugin system changed from Plugin Installer (PI) “self-managed” to Plugin Manager (PM) “managed” inside Options > Plugins

Plugin Package Manager (PI) - Older process

Plugin Manager (PIM) - Newer

For further reference about the difference between ProgramData and AppData. Plugin Manager chooses to use the Users AppData (%LOCALAPPDATA%) which is typical and better for a number of technical reasons.

Above is for Windows, for other Operating Systems and more details please read this documentation: https://github.com/leamas/OpenCPN/wiki/Installation-pathspaths

Default Internal Plugins

Cache -Metadata and Tarball

Just to be complete, there is a cache file that stores all the Plugin Manager (PM) tarballs that have been downloaded. These normally do not have to be accessed or cleaned out. However some developers may find that it is necessary to remove these files and start over if they are working on the proper results in the Plugin Interface. For windows the location is

The tarball cache can build up, it is a resource for reinstallation, so if you are at sea without internet don't remove these files.

Blacklisted Plugins

Plugins or versions of plugins known to be problematic can be Blacklisted.

A dialog pops up for 5 seconds when starting OpenCPN, if a blacklisted plugin is detected. This will happen even if the plugin is not enabled. A number of plugins are blacklisted. They are, mainly, old problematic versions of plugins. There is always a newer version of a blacklisted plugin, or, in worst case scenario, one will soon be released.